package com.system.exam.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.system.exam.admin.entity.BusExamQuestion;
import com.system.exam.admin.mapper.BusExamQuestionMapper;
import com.system.exam.admin.service.BusExamQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Administrator
 * @description 针对表【bus_exam_question(考试题目)】的数据库操作Service实现
 * @createDate 2023-10-24 12:47:55
 */
@Service
public class BusExamQuestionServiceImpl extends ServiceImpl<BusExamQuestionMapper, BusExamQuestion>
        implements BusExamQuestionService {
    @Autowired
    private BusExamQuestionMapper busExamQuestionMapper;

    @Override
    public int updateBusExamQuestionById(String categoryName, long categoryId) {
        return busExamQuestionMapper.updateBusExamQuestionById(categoryName, categoryId);
    }

    @Override
    public int deleteBusExamQuestionById(long categoryId) {
        return busExamQuestionMapper.deleteBusExamQuestionById(categoryId);
    }

}




